home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0099-ForceOnScreen probl-Aug89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  1.2 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    7655205                         22-Aug-89        12:13
  2.  
  3. From:   ANIMATRIXDEV                    Animatrix, David Goldman,PRT
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. cc:     MACAPP.TEST                     MacApp SQA Team,APL
  8.         MACDTS                          Macintosh Developer Tech. Supt.,APL
  9.  
  10. Sub:    ForceOnScreen problem
  11.  
  12. Hi!
  13.  
  14. I am having trouble getting TWindow.ForceOnScreen to work. In my document's
  15. DoMakeViews method, after creating all the windows/views from templates, I call
  16. my RestoreWindowPositions method. This method performs:
  17.  
  18.    aWindow := fRunView.GetWindow;
  19.    aWindow.Locate(runLoc.h, runLoc.v, false);
  20.    aWindow.ReSize(runSize.h, runSize.v, false);
  21.    aWindow.ForceOnScreen;
  22.  
  23. for each window. The code works fine, ie. it restores all the windows to their
  24. previous positions. However, if I configure the second monitor to be on the
  25. opposite side of the main screen, the windows are lost in 'monitor' hyperspace.
  26.  
  27. I noticed that ForceOnScreen uses MoveWindow and SizeWindow when the window is
  28. not shown, but the Cookbook suggests the method above.
  29.  
  30. What's up?
  31.  
  32. Thanks for your time
  33.  
  34. Steven Marcus@AnimatrixDev
  35.  
  36.  
  37.  
  38. Config : MacApp 2.0b9, Sys 6.0.3 + 32CQD, Mac II
  39.  
  40.